<html lang="">
<body>
<div>
    <h2>体重列表</h2>
    <a href="/addWeight">添加新的体重</a>
    <table border="1px">
        <tr>
            <th>日期</th>
            <th>体重</th>
        </tr>
        {{range $index, $bodyWeight := .}}
        <tr>
            <td>{{$bodyWeight.Pdate}}</td>
            <td>{{$bodyWeight.Weight}}</td>
        </tr>
        {{end}}
    </table>
</div>
</body>
</html>